package com.zxy.ziems.common.mqtt.config;

import lombok.Data;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author chdzq
 * @create 2023/6/20
 */
@Data
@Component
@ConfigurationProperties(prefix = "mqtt.client")
@ConditionalOnProperty(prefix = "mqtt.client", value = "enable", matchIfMissing = true)
public class MqttClientProperties {
    private String host;

    private String clientId;

    private String username;

    private String password;

    private int timeout;

}

